import request from '@/utils/request'

export function login(p) {
  return request({
    url: '/manager/admin/login',
    method: 'GET',
    params: {username:p.username,password:p.password}
  })
}

export function getInfo() {
  return request({
    url: '/manager/admin/getInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/manager/admin/logout',
    method: 'post'
  })
}
